<?php
namespace app\home\controller;
//use geetest\lib\GeetestLib;
//define("CAPTCHA_ID","4e80f18d096d3d522f500941aac50a21");
//define("PRIVATE_KEY","d26a6f06383bf78b4920728177dfa6e9");
class Login extends Common{
    public function _initialize(){
        parent::_initialize();
    }

    public function index(){
        return $this->fetch();
    }

    public function register(){
        return $this->fetch();
    }





    /***滑动验证demo***/
//    public function checkGeetest()
//    {
//        $Gtsdk=new GeetestLib(CAPTCHA_ID,PRIVATE_KEY);
//        session_start();
//        $data=array(
//            "user_id"=>"test",
//            "client_type"=>"web",
//            "ip_address"=>"127.0.0.1"
//        );
//        $status=$Gtsdk->pre_process($data,1);
////        Session::set('gtserver',$status);
////        Session::set('user_id',$data['user_id']);
//        $_SESSION['gtserver']=$status;
//        $_SESSION['user_id']=$data['user_id'];
//        echo $Gtsdk->get_response_str();
//    }
}